﻿import request from '/@/utils/request';
enum Api {
  AddBusGoodFlag = '/api/busGoodFlag/add',
  DeleteBusGoodFlag = '/api/busGoodFlag/delete',
  UpdateBusGoodFlag = '/api/busGoodFlag/update',
  PageBusGoodFlag = '/api/busGoodFlag/page',
  GetBusGoodsDropdown = '/api/busGoodFlag/BusGoodsDropdown',
  GetBusFlagDropdown = '/api/busGoodFlag/BusFlagDropdown',
}

// 增加商品标签关系
export const addBusGoodFlag = (params?: any) =>
	request({
		url: Api.AddBusGoodFlag,
		method: 'post',
		data: params,
	});

// 删除商品标签关系
export const deleteBusGoodFlag = (params?: any) => 
	request({
			url: Api.DeleteBusGoodFlag,
			method: 'post',
			data: params,
		});

// 编辑商品标签关系
export const updateBusGoodFlag = (params?: any) => 
	request({
			url: Api.UpdateBusGoodFlag,
			method: 'post',
			data: params,
		});

// 分页查询商品标签关系
export const pageBusGoodFlag = (params?: any) => 
	request({
			url: Api.PageBusGoodFlag,
			method: 'post',
			data: params,
		});

export const getBusGoodsDropdown = () =>
		request({
		url: Api.GetBusGoodsDropdown,
		method: 'get'
		});
export const getBusFlagDropdown = () =>
		request({
		url: Api.GetBusFlagDropdown,
		method: 'get'
		});

